package com.zlg.factory.factoryMethod1;
/**
 * @Desc
 * @author iam1inggu0
 * @Date 2019年5月9日下午7:59:13
 */
public abstract class PizzaStore {
	public Pizza orderPizza(String type) {
		Pizza pizza;
		
		pizza = createPizza(type);
		
		pizza.prepare();
		pizza.bake();
		pizza.cut();
		pizza.box();
		return pizza;
	}
	
	abstract Pizza createPizza(String type);
}
